import request from '@/utils/request'

export function createTask(data) {
  return request({
    url: '/task/create',
    method: 'post',
    data
  })
}

export function getTaskList(params) {
  return request({
    url: '/task/list',
    method: 'get',
    params
  })
}

export function getTaskDetail(taskId) {
  return request({
    url: `/task/${taskId}`,
    method: 'get'
  })
}
